package com.weishu.controller;


import com.github.pagehelper.PageInfo;
import com.weishu.domain.TCfContract;
import com.weishu.service.ITCfContractService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *  租房合同
 * @author liyan
 * @since 2021-07-24
 */
@RestController
@RequestMapping("/tCfContract")
public class TCfContractController {

    @Autowired
    private ITCfContractService cfContractService;

    //租房合同查询
    @RequestMapping("list")
    public PageInfo<TCfContract> list(@RequestBody TCfContract cfContract){
        PageInfo<TCfContract> info=cfContractService.select(cfContract);
        return info;
    }
}

